package com.chenfan.finance.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chenfan.finance.model.ReferenceTable;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author lizhejin
 * @since 2020-12-28
 */
@Repository
public interface ReferenceTableMapper extends BaseMapper<ReferenceTable> {

    List<ReferenceTable> getTargetDeliverTableIds(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);

    List<ReferenceTable> getTargetOrderTableIds(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);

    int insertList(@Param("subList") List<ReferenceTable> subList);

    List<ReferenceTable> getTargetStockInTableIds(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);
}
